import Vue from 'vue';
import Vuex from 'vuex';
// import VuexPersistence from 'vuex-persist'
//
//
// const vuexLocal = new VuexPersistence({
//     storage: window.localStorage,
// 	modules: ["userStore","chatStore"]
// })

Vue.use(Vuex)

export default new Vuex.Store({
	modules: {},
	state: {},
	//plugins: [vuexLocal.plugin],
	mutations: {
	},
	actions: {
		load(context) {
			//console.log("load")
		},
		unload(context){
			context.commit("clear");
		}
	},
	strict: process.env.NODE_ENV !== 'production'
})
